﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;

namespace Model.EF
{
    public class NerdDinners:DbContext
    {
        public DbSet<Dinner> Dinners { get; set; }
        public DbSet<RSVP> RSVPs { get; set; }
        public DbSet<SystemUser> SystemUser { get; set; }
        public DbSet<SystemBranch> SystemBranch { get; set; }
        public DbSet<SystemMenu> SystemMenu { get; set; }
        public DbSet<SystemRole> SystemRole { get; set; }
        public DbSet<SystemUserRole> SystemUserRole { get; set; }
        public DbSet<SystemRoleMenu> SystemRoleMenu { get; set; }
        public DbSet<ActionTb> ActionTb { get; set; }
        public DbSet<wallpaper> wallpaper { get; set; }
        public DbSet<desk> desk { get; set; }
        public DbSet<UserDesk> UserDesk { get; set; }
        public DbSet<app> app { get; set; }
        public DbSet<setting> setting { get; set; }
        public NerdDinners()
        {
            //延迟加载禁用
            Initialize();
        }

        private void Initialize()
        {
            // 创建代理需要使用 ProxyDataContractResolver 和
            // 可允许延迟加载，这可以在序列化期间展开加载图。
            this.Configuration.LazyLoadingEnabled = false; 
        }

       
    }
}
